using Google.ProtocolBuffers;
using Google.ProtocolBuffers.Collections;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class ShakeGetResponse : GeneratedMessageLite<ShakeGetResponse, ShakeGetResponse.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<ShakeGetResponse, ShakeGetResponse.Builder>
		{
			private bool resultIsReadOnly;
			private ShakeGetResponse result;
			protected override ShakeGetResponse.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override ShakeGetResponse MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override ShakeGetResponse DefaultInstanceForType
			{
				get
				{
					return ShakeGetResponse.DefaultInstance;
				}
			}
			public BaseResponse BaseResponse
			{
				get
				{
					return this.result.BaseResponse;
				}
				set
				{
					this.SetBaseResponse(value);
				}
			}
			public uint Count
			{
				get
				{
					return this.result.Count;
				}
				set
				{
					this.SetCount(value);
				}
			}
			public IPopsicleList<ShakeGetItem> ShakeGetListList
			{
				get
				{
					return this.PrepareBuilder().shakeGetList_;
				}
			}
			public int ShakeGetListCount
			{
				get
				{
					return this.result.ShakeGetListCount;
				}
			}
			public string Tips
			{
				get
				{
					return this.result.Tips;
				}
				set
				{
					this.SetTips(value);
				}
			}
			public uint Scence
			{
				get
				{
					return this.result.Scence;
				}
				set
				{
					this.SetScence(value);
				}
			}
			public uint Ret
			{
				get
				{
					return this.result.Ret;
				}
				set
				{
					this.SetRet(value);
				}
			}
			public Builder()
			{
				this.result = ShakeGetResponse.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(ShakeGetResponse cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private ShakeGetResponse PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					ShakeGetResponse other = this.result;
					this.result = new ShakeGetResponse();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override ShakeGetResponse.Builder Clear()
			{
				this.result = ShakeGetResponse.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override ShakeGetResponse.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new ShakeGetResponse.Builder(this.result);
				}
				return new ShakeGetResponse.Builder().MergeFrom(this.result);
			}
			public override ShakeGetResponse BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override ShakeGetResponse.Builder MergeFrom(IMessageLite other)
			{
				if (other is ShakeGetResponse)
				{
					return this.MergeFrom((ShakeGetResponse)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override ShakeGetResponse.Builder MergeFrom(ShakeGetResponse other)
			{
				return this;
			}
			public override ShakeGetResponse.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override ShakeGetResponse.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(ShakeGetResponse._shakeGetResponseFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = ShakeGetResponse._shakeGetResponseFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 16u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 10u)
						{
							BaseResponse.Builder builder = BaseResponse.CreateBuilder();
							if (this.result.hasBaseResponse)
							{
								builder.MergeFrom(this.BaseResponse);
							}
							input.ReadMessage(builder, extensionRegistry);
							this.BaseResponse = builder.BuildPartial();
							continue;
						}
						if (num3 == 16u)
						{
							this.result.hasCount = input.ReadUInt32(ref this.result.count_);
							continue;
						}
					}
					else
					{
						if (num3 <= 34u)
						{
							if (num3 == 26u)
							{
								input.ReadMessageArray<ShakeGetItem>(num, text, this.result.shakeGetList_, ShakeGetItem.DefaultInstance, extensionRegistry);
								continue;
							}
							if (num3 == 34u)
							{
								this.result.hasTips = input.ReadString(ref this.result.tips_);
								continue;
							}
						}
						else
						{
							if (num3 == 40u)
							{
								this.result.hasScence = input.ReadUInt32(ref this.result.scence_);
								continue;
							}
							if (num3 == 48u)
							{
								this.result.hasRet = input.ReadUInt32(ref this.result.ret_);
								continue;
							}
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public ShakeGetResponse.Builder SetBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = value;
				return this;
			}
			public ShakeGetResponse.Builder SetBaseResponse(BaseResponse.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = builderForValue.Build();
				return this;
			}
			public ShakeGetResponse.Builder MergeBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseResponse && this.result.baseResponse_ != BaseResponse.DefaultInstance)
				{
					this.result.baseResponse_ = BaseResponse.CreateBuilder(this.result.baseResponse_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseResponse_ = value;
				}
				this.result.hasBaseResponse = true;
				return this;
			}
			public ShakeGetResponse.Builder ClearBaseResponse()
			{
				this.PrepareBuilder();
				this.result.hasBaseResponse = false;
				this.result.baseResponse_ = null;
				return this;
			}
			public ShakeGetResponse.Builder SetCount(uint value)
			{
				this.PrepareBuilder();
				this.result.hasCount = true;
				this.result.count_ = value;
				return this;
			}
			public ShakeGetResponse.Builder ClearCount()
			{
				this.PrepareBuilder();
				this.result.hasCount = false;
				this.result.count_ = 0u;
				return this;
			}
			public ShakeGetItem GetShakeGetList(int index)
			{
				return this.result.GetShakeGetList(index);
			}
			public ShakeGetResponse.Builder SetShakeGetList(int index, ShakeGetItem value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.shakeGetList_[index] = value;
				return this;
			}
			public ShakeGetResponse.Builder SetShakeGetList(int index, ShakeGetItem.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.shakeGetList_[index] = builderForValue.Build();
				return this;
			}
			public ShakeGetResponse.Builder AddShakeGetList(ShakeGetItem value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.shakeGetList_.Add(value);
				return this;
			}
			public ShakeGetResponse.Builder AddShakeGetList(ShakeGetItem.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.shakeGetList_.Add(builderForValue.Build());
				return this;
			}
			public ShakeGetResponse.Builder AddRangeShakeGetList(IEnumerable<ShakeGetItem> values)
			{
				this.PrepareBuilder();
				this.result.shakeGetList_.Add(values);
				return this;
			}
			public ShakeGetResponse.Builder ClearShakeGetList()
			{
				this.PrepareBuilder();
				this.result.shakeGetList_.Clear();
				return this;
			}
			public ShakeGetResponse.Builder SetTips(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasTips = true;
				this.result.tips_ = value;
				return this;
			}
			public ShakeGetResponse.Builder ClearTips()
			{
				this.PrepareBuilder();
				this.result.hasTips = false;
				this.result.tips_ = "";
				return this;
			}
			public ShakeGetResponse.Builder SetScence(uint value)
			{
				this.PrepareBuilder();
				this.result.hasScence = true;
				this.result.scence_ = value;
				return this;
			}
			public ShakeGetResponse.Builder ClearScence()
			{
				this.PrepareBuilder();
				this.result.hasScence = false;
				this.result.scence_ = 0u;
				return this;
			}
			public ShakeGetResponse.Builder SetRet(uint value)
			{
				this.PrepareBuilder();
				this.result.hasRet = true;
				this.result.ret_ = value;
				return this;
			}
			public ShakeGetResponse.Builder ClearRet()
			{
				this.PrepareBuilder();
				this.result.hasRet = false;
				this.result.ret_ = 0u;
				return this;
			}
		}
		public const int BaseResponseFieldNumber = 1;
		public const int CountFieldNumber = 2;
		public const int ShakeGetListFieldNumber = 3;
		public const int TipsFieldNumber = 4;
		public const int ScenceFieldNumber = 5;
		public const int RetFieldNumber = 6;
		private static readonly ShakeGetResponse defaultInstance;
		private static readonly string[] _shakeGetResponseFieldNames;
		private static readonly uint[] _shakeGetResponseFieldTags;
		private bool hasBaseResponse;
		private BaseResponse baseResponse_;
		private bool hasCount;
		private uint count_;
		private PopsicleList<ShakeGetItem> shakeGetList_ = new PopsicleList<ShakeGetItem>();
		private bool hasTips;
		private string tips_ = "";
		private bool hasScence;
		private uint scence_;
		private bool hasRet;
		private uint ret_;
		private int memoizedSerializedSize = -1;
		public static ShakeGetResponse DefaultInstance
		{
			get
			{
				return ShakeGetResponse.defaultInstance;
			}
		}
		public override ShakeGetResponse DefaultInstanceForType
		{
			get
			{
				return ShakeGetResponse.DefaultInstance;
			}
		}
		protected override ShakeGetResponse ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseResponse BaseResponse
		{
			get
			{
				return this.baseResponse_ ?? BaseResponse.DefaultInstance;
			}
		}
		public uint Count
		{
			get
			{
				return this.count_;
			}
		}
		public IList<ShakeGetItem> ShakeGetListList
		{
			get
			{
				return this.shakeGetList_;
			}
		}
		public int ShakeGetListCount
		{
			get
			{
				return this.shakeGetList_.Count;
			}
		}
		public string Tips
		{
			get
			{
				return this.tips_;
			}
		}
		public uint Scence
		{
			get
			{
				return this.scence_;
			}
		}
		public uint Ret
		{
			get
			{
				return this.ret_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				if (!this.hasBaseResponse)
				{
					return false;
				}
				if (!this.hasCount)
				{
					return false;
				}
				if (!this.hasScence)
				{
					return false;
				}
				if (!this.hasRet)
				{
					return false;
				}
				if (!this.BaseResponse.IsInitialized)
				{
					return false;
				}
				using (IEnumerator<ShakeGetItem> enumerator = this.ShakeGetListList.GetEnumerator())
				{
					while (enumerator.MoveNext())
					{
						ShakeGetItem current = enumerator.get_Current();
						if (!current.IsInitialized)
						{
							return false;
						}
					}
				}
				return true;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseResponse)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseResponse);
				}
				if (this.hasCount)
				{
					num += CodedOutputStream.ComputeUInt32Size(2, this.Count);
				}
				using (IEnumerator<ShakeGetItem> enumerator = this.ShakeGetListList.GetEnumerator())
				{
					while (enumerator.MoveNext())
					{
						ShakeGetItem current = enumerator.get_Current();
						num += CodedOutputStream.ComputeMessageSize(3, current);
					}
				}
				if (this.hasTips)
				{
					num += CodedOutputStream.ComputeStringSize(4, this.Tips);
				}
				if (this.hasScence)
				{
					num += CodedOutputStream.ComputeUInt32Size(5, this.Scence);
				}
				if (this.hasRet)
				{
					num += CodedOutputStream.ComputeUInt32Size(6, this.Ret);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private ShakeGetResponse()
		{
		}
		public ShakeGetItem GetShakeGetList(int index)
		{
			return this.shakeGetList_[index];
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] shakeGetResponseFieldNames = ShakeGetResponse._shakeGetResponseFieldNames;
			if (this.hasBaseResponse)
			{
				output.WriteMessage(1, shakeGetResponseFieldNames[0], this.BaseResponse);
			}
			if (this.hasCount)
			{
				output.WriteUInt32(2, shakeGetResponseFieldNames[1], this.Count);
			}
			if (this.shakeGetList_.Count > 0)
			{
				output.WriteMessageArray<ShakeGetItem>(3, shakeGetResponseFieldNames[4], this.shakeGetList_);
			}
			if (this.hasTips)
			{
				output.WriteString(4, shakeGetResponseFieldNames[5], this.Tips);
			}
			if (this.hasScence)
			{
				output.WriteUInt32(5, shakeGetResponseFieldNames[3], this.Scence);
			}
			if (this.hasRet)
			{
				output.WriteUInt32(6, shakeGetResponseFieldNames[2], this.Ret);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseResponse)
			{
				num ^= this.baseResponse_.GetHashCode();
			}
			if (this.hasCount)
			{
				num ^= this.count_.GetHashCode();
			}
			using (IEnumerator<ShakeGetItem> enumerator = this.shakeGetList_.GetEnumerator())
			{
				while (enumerator.MoveNext())
				{
					ShakeGetItem current = enumerator.get_Current();
					num ^= current.GetHashCode();
				}
			}
			if (this.hasTips)
			{
				num ^= this.tips_.GetHashCode();
			}
			if (this.hasScence)
			{
				num ^= this.scence_.GetHashCode();
			}
			if (this.hasRet)
			{
				num ^= this.ret_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			ShakeGetResponse shakeGetResponse = value as ShakeGetResponse;
			if (shakeGetResponse == null)
			{
				return false;
			}
			if (this.hasBaseResponse != shakeGetResponse.hasBaseResponse || (this.hasBaseResponse && !this.baseResponse_.Equals(shakeGetResponse.baseResponse_)))
			{
				return false;
			}
			if (this.hasCount != shakeGetResponse.hasCount || (this.hasCount && !this.count_.Equals(shakeGetResponse.count_)))
			{
				return false;
			}
			if (this.shakeGetList_.Count != shakeGetResponse.shakeGetList_.Count)
			{
				return false;
			}
			for (int i = 0; i < this.shakeGetList_.Count; i++)
			{
				if (!this.shakeGetList_[i].Equals(shakeGetResponse.shakeGetList_[i]))
				{
					return false;
				}
			}
			return this.hasTips == shakeGetResponse.hasTips && (!this.hasTips || this.tips_.Equals(shakeGetResponse.tips_)) && (this.hasScence == shakeGetResponse.hasScence && (!this.hasScence || this.scence_.Equals(shakeGetResponse.scence_))) && (this.hasRet == shakeGetResponse.hasRet && (!this.hasRet || this.ret_.Equals(shakeGetResponse.ret_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<ShakeGetResponse, ShakeGetResponse.Builder>.PrintField("BaseResponse", this.hasBaseResponse, this.baseResponse_, writer);
			GeneratedMessageLite<ShakeGetResponse, ShakeGetResponse.Builder>.PrintField("Count", this.hasCount, this.count_, writer);
			GeneratedMessageLite<ShakeGetResponse, ShakeGetResponse.Builder>.PrintField<ShakeGetItem>("ShakeGetList", this.shakeGetList_, writer);
			GeneratedMessageLite<ShakeGetResponse, ShakeGetResponse.Builder>.PrintField("Tips", this.hasTips, this.tips_, writer);
			GeneratedMessageLite<ShakeGetResponse, ShakeGetResponse.Builder>.PrintField("Scence", this.hasScence, this.scence_, writer);
			GeneratedMessageLite<ShakeGetResponse, ShakeGetResponse.Builder>.PrintField("Ret", this.hasRet, this.ret_, writer);
		}
		public static ShakeGetResponse ParseFrom(byte[] data)
		{
			return ShakeGetResponse.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private ShakeGetResponse MakeReadOnly()
		{
			this.shakeGetList_.MakeReadOnly();
			return this;
		}
		public static ShakeGetResponse.Builder CreateBuilder()
		{
			return new ShakeGetResponse.Builder();
		}
		public override ShakeGetResponse.Builder ToBuilder()
		{
			return ShakeGetResponse.CreateBuilder(this);
		}
		public override ShakeGetResponse.Builder CreateBuilderForType()
		{
			return new ShakeGetResponse.Builder();
		}
		public static ShakeGetResponse.Builder CreateBuilder(ShakeGetResponse prototype)
		{
			return new ShakeGetResponse.Builder(prototype);
		}
		static ShakeGetResponse()
		{
			ShakeGetResponse.defaultInstance = new ShakeGetResponse().MakeReadOnly();
			ShakeGetResponse._shakeGetResponseFieldNames = new string[]
			{
				"BaseResponse",
				"Count",
				"Ret",
				"Scence",
				"ShakeGetList",
				"Tips"
			};
			ShakeGetResponse._shakeGetResponseFieldTags = new uint[]
			{
				10u,
				16u,
				48u,
				40u,
				26u,
				34u
			};
			object.ReferenceEquals(micromsg.Proto.ShakeGetResponse.Descriptor, null);
		}
	}
}
